﻿@model spring.stp6.web.Models.DiaryModel
           
@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Create</h2>
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true, "添加曰记不成功。请更正错误并重试。")
    <div>
        <fieldset>
            <legend>新建曰记</legend>
            
            
                @Html.LabelFor(m => m.Subject)
            
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Subject)
                @Html.ValidationMessageFor(m => m.Subject)
            </div>
            <div class="formItem textarea">
	            <label for="body">@("Description")</label>
	                @Html.TextArea("editor")
	                @Html.Partial("EditorScripts")
            </div>
            

            <p>
                <input type="submit" value="保存" />
            </p>
        </fieldset>
    </div>
}